package cn.kgc.service.system;

import cn.kgc.dao.system.smj_zwqxDao;
import cn.kgc.pojo.Jobtitle;
import cn.kgc.pojo.Quanxianinfo;
import cn.kgc.pojo.Zhiweiquanxian;
import cn.kgc.util.GetIPUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class smj_zwqxServiceImpl implements smj_zwqxService {



    @Resource
    public smj_zwqxDao zwqx;

    @Override
    public Zhiweiquanxian selJobQXByJbId(Integer jb_id) {
        return zwqx.selJobQXByJbId(jb_id);
    }

    @Override
    public List<Quanxianinfo> selQXPathByAuths(List auths) {
        return zwqx.selQXPathByAuths(auths);
    }

    @Override
    public List<Quanxianinfo> selQXPath() {
        return zwqx.selQXPath();
    }


    /**
     * 记录日志
     *
     */
    @Override
    public int insertLog(Integer u_id, String event) {
        String ips = GetIPUtil.getIps();
        return zwqx.insertLog(u_id,event+ips);
    }


}
